const mockJs = require("mockjs");

const userList = mockJs.mock({
  "data|100": [
    {
      name: "@cname",
      // ename: "@name",
      "id|+1": 1,
    },
  ],
});
// console.log("userList", userList);
module.exports = [
  {
    method: "post",
    url: "/api/users",
    response: ({ body }) => {
      // body 请求体
      return {
        code: 200,
        msg: "success",
        data: userList.data,
      };
    },
  },
];
